gdk: Make sure only one GL backend is used
authorBenjamin Otte <otte@redhat.com>
Thu, 23 Sep 2021 23:47:03 +0000 (01:47 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 23 Sep 2021 23:59:37 +0000 (01:59 +0200)
commit23acc993cced48fa1f21ac9f4881338100b1a15a
tree50f1708b91e4ec16d532e8631edf501a5d314299
parentd7db3f1546156f406509e5bfbf076cd575c5628d
gdk: Make sure only one GL backend is used

Creative people managed to create an X11 display and a Wayland display
at once, thereby getting EGL and GLX involved in a fight to the death
over the ownership of the glFoo() symbolspace.

A way to force such a fight with available tools here is (on Wayland)
running something like:
GTK_INSPECTOR_DISPLAY=:1 GTK_DEBUG=interactive gtk4-demo

Related: xdg-desktop-portal-gnome#5
gdk/gdkdisplay.c
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h
gdk/macos/gdkmacosdisplay.c
gdk/macos/gdkmacosglcontext.c
gdk/wayland/gdkglcontext-wayland.c
gdk/win32/gdkglcontext-win32-egl.c
gdk/win32/gdkglcontext-win32-wgl.c
gdk/x11/gdkglcontext-egl.c
gdk/x11/gdkglcontext-glx.c